package com.bsj.power.system.web;

import com.bsj.power.common.config.global.JsonResult;
import com.bsj.power.common.def.dto.PageDTO;
import com.bsj.power.common.def.vo.sys.SyncLogVO;
import com.bsj.power.system.service.SyncLogService;
import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedList;
import java.util.List;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description SyncLogController
 * @time 2024/8/27 9:23
 */
@RestController
@RequestMapping("/system/syncLog")
public class SyncLogController {

    @Autowired
    private SyncLogService syncLogService;

    /**
     * 分页展示同步日志
     *
     * @param pageDTO
     * @return com.bsj.power.common.config.global.JsonResult<java.util.List < com.bsj.power.common.def.vo.sys.SyncLogVO>>
     * @author ljx
     * @time 2024/8/27 9:39
     */
    @GetMapping("/page")
    public JsonResult<List<SyncLogVO>> page(@Validated PageDTO pageDTO) {
        return syncLogService.page(pageDTO);
    }

}
